package com.yhy.common.swagger.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.Contact;

/**
 * @author Jax-li
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {

    private Boolean enabled = true;

    private Info info = new Info();

    @Data
    public static class Info {
        private Contact contact = new Contact("jax.li", "https://gitee.com/haughty945", "jax0910@163.com");
        private String title = " swagger of ";
        private String name = "";
        private String description = "the swagger2 document of %s";
        private String version = "3.0.0";
        private String accessTokenUri = "http://127.0.0.1:9999/auth/oauth/token";
        private String license = "By IT R&D Department of %s";
        private String termsIfServiceUrl = "http://127.0.0.1:9999/%s/doc.html";
    }

}
